package test;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.ScheduledExecutorService;

public class D implements A {
   /* private static ThreadLocal<Connection> local = new ThreadLocal<Connection>();
    private static ThreadLocal<Connection> local1 = new ThreadLocal<Connection>();

    public static void main(String[] args) {
        final List<String> a = new ArrayList<>();
        List<String> b = new ArrayList<>();
        a.add("2");
        for (String m : a) {
            PrintUtil.println(m);
        }
        final CopyOnWriteArrayList<String> list = new CopyOnWriteArrayList<String>(a);
        list.add("88");
        *//*String s1 = new String("11");
        s1.intern();
        String s2 = "11";
        System.out.println(s1 == s2);

        String s3 = new String("ss") + new String("ss");
        s3.intern();
        String s4 = "ssss";
        System.out.println(s3 == s4);*//*
    }*/

    private static ThreadLocal<Integer> tl = new ThreadLocal<Integer>();  //private是为了安全，是一个普遍做法；static是因为这个变量有可能在static方法中使用

    public static void main(String[] args) {
        ScheduledExecutorService s = Executors.newScheduledThreadPool(3);
        ExecutorService fixedThreadPool = Executors.newCachedThreadPool();
    }
}
